import request from '@/utils/request';

export function list(params) {
	return request({
		url: '/quota/setting/list',
		method: 'get',
		params
	});
}

export function get(id) {
	return request({
		url: '/quota/setting/' + id,
		method: 'get'
	});
}

export function add(data) {
	return request({
		url: '/quota/setting',
		method: 'post',
		data: data
	});
}

export function update(data) {
	return request({
		url: '/quota/setting',
		method: 'put',
		data: data
	});
}

export function remove(ids) {
	return request({
		url: '/quota/setting/' + ids,
		method: 'delete'
	});
}

export function getQrCodeId() {
	return request({
		url: '/quota/code/getQrCodeId',
		method: 'get'
	});
}
